home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 100
/
FreelogNo100-NovembreDecembre2010.iso
/
ViePratique
/
Calendar Magic
/
setup.exe
/
{app}
/
NewtonRaphson.shf
< prev
next >
Wrap
Text File
|
2007-02-07
|
471b
|
25 lines
Radians
' Newton-Raphson Iteration
'
' Turn on the checkbox "Ignore # lines", then perform iterations by pressing Recalc All.
'
' Function definition
F(x) = sin(x) - 0.5 * x #
==> Function F(x) accepted
'
' Derivative of function
DF(x) = cos(x) - 0.5 #
==> Function DF(x) accepted
'
' Initial estimate for root
x = 2 #
==> x = 2
'
' Newton-Raphson formula
x = x - F(x) / DF(x)
==> x = 1.9009955942039
'
' Check result
F(x)
==> -4.5200435703061E-3